/*
 * @Author: 密钥token
 * @Date: 2020-06-29 10:07:25
 * @LastEditTime: 2020-07-01 10:01:48
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mobile_item_121e:\新建文件夹\jkshopping\src\store\modules\userModules.js
 */ 
let userModule = {
    namespaced: true,
    state: {
        token: localStorage.getItem("token") || ""//密钥
    },
    mutations: {
        ["CHANGESIGN_TOKEN"](state,token){
            state.token = token;
            localStorage.setItem("token",state.token)
        },
        ["REMOVE_TOKEN"](state) {//删除密钥
            state.token = ""
            localStorage.removeItem("token")
        }
    }
}
export default userModule